#pragma once
#include <iostream>
#include <unistd.h>
#include <functional>
using namespace std;
using task_t = std::function<void()>;
void Download()
{
    cout << "下载中-------" << endl;
    sleep(2);
}
class Task
{
public:
    Task() {}
    Task(int x, int y)
        : _x(x),
          _y(y)
    {
    }
    void Execute()
    {
        _result = _x + _y;
    }
    int result()
    {
        return _result;
    }
    int X()
    {
        return _x;
    }
    int Y()
    {
        return _y;
    }

private:
    int _x;
    int _y;
    int _result;
};